package com.itmuch;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableAuthorizationServer;

/**
 * 只做了认证服务器的配置
 * @author
 * 可以拿Order-service 做ResourceServer
 *EnableAuthorizationServer
 */
@SpringBootApplication
@EnableAuthorizationServer //认证服务器 认证服务器，进行认证和授权
@EnableEurekaClient //eurekaClient注解启动 让EurekaClient cleinet能直接使用了
public class AuthServiceApplication {

    public static void main(String[] args) {
        SpringApplication.run(AuthServiceApplication.class, args);
    }
}
